<?php
	$cliente	= $this->registro->get('cliente');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>
			5Store
		</title>
		<link rel="stylesheet" type="text/css" href="includes/estilosite.css" />
	</head>
	
	<body>
		<div id="divTudo">
			<div id="divCabecalho">
				<a class="linkLogo" href='./index.php'>
					<img src='./images/logo.png' alt='Logo 5Store' />
				</a>
				<p id="strBemVindo">
					Bem-vindo, <?php echo $cliente->getNome();?>, &agrave; 5Store!
					<?php
						if ($cliente->getId() == null) {
							?>
							<a href='./index.php?action=logar'>
								Fa&ccedil;a seu Login
							</a>
							<?php
						}
						else {
							?>
							<a href='./index.php?action=deslogar'>
								Logout
							</a>
							<?php
						}
					?>
					<a href='./index.php?action=vercarrinho'>
						Meu Carrinho
					</a>
				</p>
				</div>
				<?php
					if (isset($_SESSION['mensagens'])) {
						$mensagens	= $_SESSION['mensagens'];
						?>
						<ul class="listaMensagens">
							<?php
								foreach ($mensagens as $mensagem) {
									?>
									<li class="itemListaMensagens">
										<?php echo $mensagem; ?>
									</li>
									<?php
								}
								
								unset($_SESSION['mensagens']);
							?>
						</ul>
					<?php
					}
					?>
			
			<div id="divPrincipal">
				<ul class="listaSecoes">
					<li id="secaoLivros">
						Livros
					</li>
					<li>
						DVDs
					</li>
					<li>
						Eletr&ocirc;nicos
					</li>
					<li>
						Inform&aacute;tica
					</li>
					<li id="secaoTelefonia">
						Telefonia
					</li>
				</ul>
